package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbFleetCostValidatorGroup.*;

import com.cloudlead.commonData.vo.TbFleetOrder;
import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.BelongsTos;
import com.cloudlead.common.lang.annotation.Domain;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;
import java.lang.Integer;

/**
 * TbFleetCost is a Codegen vo type
 */
@Label("TbFleetCost")
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbFleetCost")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseFleetOrder", rootField="baseFleetOrderId")
})
public class TbFleetCost extends AbstractIdEntity<String> {

    private static final long serialVersionUID =9646428880672L;    
    @Label("baseFleetOrderId")
    private TbFleetOrder baseFleetOrder;

    @Size(max=100)
    @Label("calculateCount")
    private String calculateCount;

    @Size(max=100)
    @Label("contactCompany")
    private String contactCompany;

    @Size(max=50)
    @Label("costCode")
    private String costCode;

    @Size(max=100)
    @Label("costName")
    private String costName;

    @Size(max=255)
    @Label("flag")
    private String flag;

    @Size(max=24)
    @Label("id")
    @NotNull(groups={Update.class})
    private String id;

    @Size(max=20)
    @Label("money")
    private String money;

    @Label("quantity")
    private Integer quantity;

    @Size(max=100)
    @Label("sort")
    private String sort;

    public TbFleetOrder getBaseFleetOrder() {
        return baseFleetOrder;
    }

    public void setBaseFleetOrder(TbFleetOrder baseFleetOrder) {
        this.baseFleetOrder = baseFleetOrder;
    }

    public String getCalculateCount() {
        return calculateCount;
    }

    public void setCalculateCount(String calculateCount) {
        this.calculateCount = calculateCount;
    }

    public String getContactCompany() {
        return contactCompany;
    }

    public void setContactCompany(String contactCompany) {
        this.contactCompany = contactCompany;
    }

    public String getCostCode() {
        return costCode;
    }

    public void setCostCode(String costCode) {
        this.costCode = costCode;
    }

    public String getCostName() {
        return costName;
    }

    public void setCostName(String costName) {
        this.costName = costName;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String toString() {
         return String.format("TbFleetCost { baseFleetOrder : %s,calculateCount : %s,contactCompany : %s,costCode : %s,costName : %s,flag : %s,id : %s,money : %s,quantity : %s,sort : %s }",baseFleetOrder,calculateCount,contactCompany,costCode,costName,flag,id,money,quantity,sort);
    }

}

